<?php
 $redis = new Redis();
   $redis->connect('127.0.0.1', 6379);
   echo "Connection to server sucessfully";
         //查看服务是否运行
   //echo "Server is running: " . $redis->set('www.baidu.com','百度');
   echo "Server is running: " . $redis->get('www.baidu.com');